<template>
  <uni-nav-bar
      :left-width="0"
      :right-width="5"
      :height="55"
      background-color="#3aa2eb"
  >
    <view slot="left" class="search-left">
      <uni-icons type="left" :size="35" @click="before"/>
    </view>
    <view class="text-title text-center top25">{{ title }}</view>
  </uni-nav-bar>
</template>

<script lang="ts" setup>
import UniNavBar from '@dcloudio/uni-ui/lib/uni-nav-bar/uni-nav-bar.vue';
import UniIcons from '@dcloudio/uni-ui/lib/uni-icons/uni-icons.vue';

defineProps({title: String})

function before() {
  uni.switchTab({url: "/pages/index/index"})
}
</script>
